/**
 * Created by pzw on 2015/8/29.
 */
var suctionSummary = function() {

    function getAutoCalculate() {
        $.post(basePath + "suction/summary/getAutoCalculate",function(data) {
            var inputs = $("input");
            inputs.autoInject({
                data: data,
                mode: "id"
            });
            Metronic.unblockUI();
        });
    }

    var getCalculateInit = function() {
        Metronic.blockUI({
            boxed: true,
            message: "数据计算中..."
        });
        $.post(basePath + "suction/summary/getCalculateInit",function(){
            getAutoCalculate();
        });
    };


    return {
        init:function() {
            getCalculateInit();
        }
    }
}();